package com.project.bean;

import java.time.LocalDate;

/**
 * 商品
 */
public class ProductBean {
    private int id;
    private String name;
    /**单价*/
    private int price;
    private String createAddress;
    private LocalDate createDate;
    /**已售出数量*/
    private int saleNum ;
    private String imgPath;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getCreateAddress() {
        return createAddress;
    }

    public void setCreateAddress(String createAddress) {
        this.createAddress = createAddress;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", createAddress='" + createAddress + '\'' +
                ", createDate=" + createDate +
                ", saleNum=" + saleNum +
                ", imgPath='" + imgPath + '\'' +
                '}';
    }
}
